home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util4 / aman-115.lha / aman-1.15 / Source / DMakefile < prev    next >
Makefile  |  1995-10-04  |  4KB  |  144 lines

  1. # AMan -*- Makefile -*- for Matt Dillon's nice DICE (Amiga)
  2. #
  3. # (c)Copyright 1994,95 by Tobias Ferber, ukjg@rz.uni-karlsruhe.de
  4. #
  5. # This file is part of the AMan distribution.
  6. #
  7. # AMan is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 1 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # AMan is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this file; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # $VER: $Id: DMakefile,v 1.4 1995/09/15 21:01:14 tf Exp $
  22.  
  23. RM = delete quiet
  24. CP = copy quiet clone
  25.  
  26. #
  27.  
  28. suffix      = texi
  29. #suffix      = texinfo
  30. makeguide   = makeguide --amiga-39
  31. #makeguide   = makeinfo --amiga
  32. guide2doc   = guide2doc
  33. #guide2doc   = ag2txt
  34. texindex    = texindex
  35. tex         = virtex &tex
  36. dvips       = dvips
  37.  
  38. #
  39.  
  40. distdir = aman-1.15
  41. arcname = aman-1.15
  42.  
  43. ##############################################################################
  44. #
  45. # DCC 2.07.56R (11.6.93)
  46. #
  47.  
  48. CC      = dcc
  49. CFLAGS  = -3.1 -030 -882 -s
  50. DEBUG   =
  51.  
  52. ##############################################################################
  53. #
  54. # GNU C (tested with gcc version 2.6.3)
  55. #
  56.  
  57. #CC      = gcc
  58. #CFLAGS  = -noixemul -Iinclude: -I.
  59. ##CFLAGS  = -O3 -Wall -noixemul -m68030 -m68881 -Iinclude: -I.
  60. #DEBUG   = -DDEBUG
  61.  
  62. ##############################################################################
  63. #
  64. # You don't want to change anything below this line
  65. #
  66.  
  67. stem = aman
  68. exes = aman ldb2db
  69.  
  70. ##############################################################################
  71.  
  72. all: $(exes)
  73.  
  74. aman: main.o aman.o
  75.     $(CC) $(CFLAGS) -lmui -o %(left) %(right)
  76.  
  77. main.o: main.c aman.h version.h
  78.     $(CC) $(CFLAGS) $(DEBUG) -c main.c
  79.  
  80. aman.o: aman.c aman.h amanExtern.h hooks.c version.h
  81.     $(CC) $(CFLAGS) -c aman.c
  82.  
  83. ldb2db: ldb2db.c
  84.     $(CC) $(CFLAGS) -o %(left) %(right)
  85.  
  86. ##############################################################################
  87.  
  88. docs: $(stem).guide $(stem).dvi $(stem).ps
  89.  
  90. $(stem).guide: $(stem).texi
  91.     $(makeguide) -o %(left) %(right)
  92.  
  93. # $(tex) creates the .(log|toc|aux|dvi) files
  94.  
  95. $(stem).dvi: $(stem).$(suffix)
  96.     $(tex) %(right)
  97.  
  98. $(stem).ps: $(stem).dvi
  99.     $(dvips) $(stem).dvi
  100.  
  101. # $(texindex) creates the #?.(cps|fns|vrs|kys|pgs|aus) files
  102.  
  103. book: $(stem).$(suffix)
  104.     $(tex) $(stem).$(suffix)
  105.     $(tex) $(stem).$(suffix)
  106.     $(texindex) $(stem).cp
  107.     $(texindex) $(stem).fn
  108.     $(texindex) $(stem).vr
  109.     $(texindex) $(stem).ky
  110.     $(texindex) $(stem).pg
  111.     $(tex) $(stem).$(suffix)
  112.  
  113. ##############################################################################
  114.  
  115. clean:
  116.     $(RM) $(exes) #?.o #?.(log|toc|aux|cp|fn|vr|ky|pg|cps|fns|vrs|kys|pgs|tp|log)
  117.  
  118. bumprev:
  119.     execute cico
  120.  
  121. install: aman ldb2db
  122.     $(CP) AMan ldb2db work:bin/
  123.  
  124. dist: $(exes) $(stem).texi $(stem).guide $(stem).dvi $(stem).ps
  125.     $(CP) `cpdist -n` $(distdir)
  126.     lha -a -e -r -x a $(arcname).lha $(distdir)
  127.     delete all quiet $(distdir)
  128.  
  129. #    tar cf $(arcname).tar $(distdir)
  130. #    gzip -9 $(arcname).tar
  131.  
  132. ##############################################################################
  133.  
  134. 000:
  135.     echo >ram:000.cvt "*"-030 -882*"->*"*";"
  136.     cvt -s -f ram:000.cvt DMakefile -o %s.000
  137.     delete quiet ram:000.cvt
  138.     dmake -a -f DMakefile.000 all
  139.     move $(stem) $(stem).000
  140.  
  141. 030:
  142.     dmake -a all
  143.     move $(stem) $(stem).030
  144.